'use strict';

/**
 * @ngdoc overview
 * @name campusRecruitingApp
 * @description
 * # campusRecruitingApp
 *
 * Main module of the application.
 */
angular
    .module('campusRecruitingApp', [
        'ngAnimate',
        'ngResource',
        'ngRoute',
        'ngSanitize',
        // 'ui.bootstrap',
        'pascalprecht.translate'
  ])
  .config(['$translateProvider', function($translateProvider){
    // Register a loader for the static files
    // So, the module will search missing translation tables under the specified urls.
    // Those urls are [prefix][langKey][suffix].
    $translateProvider.useStaticFilesLoader({
        prefix: 'l10n/',
        suffix: '.js'
    });
    // Tell the module what language to use by default
    $translateProvider.preferredLanguage('en');
    // Tell the module to store the language in the local storage
    // $translateProvider.useLocalStorage();
  }])
  .config(function ($routeProvider) {
    $routeProvider
        .when('/', {
            templateUrl: 'views/gr_Home.html',
            controller: 'MainCtrl'
        }) 
        .when('/BeTheBest', {
            templateUrl: 'views/gr_BeTheBest.html',
            controller: 'BeTheBestCtrl'
        })
         .when('/Calendar', {
            templateUrl: 'views/gr_Calendar.html',
            controller: 'CalendarCtrl'
        }) .when('/CareerPath', {
            templateUrl: 'views/gr_CareerPath.html',
            controller: 'CareerPathCtrl'
        }) .when('/ContactUs', {
            templateUrl: 'views/gr_ContactUs.html',
            controller: 'ContactUsCtrl'
        }) .when('/FAQ', {
            templateUrl: 'views/gr_FAQ.html',
            controller: 'FAQCtrl'
        }) .when('/JD', {
            templateUrl: 'views/gr_JD.html',
            controller: 'JDCtrl'
        }) .when('/KeyDates', {
            templateUrl: 'views/gr_KeyDates.html',
            controller: 'KeyDatesCtrl'
        }) .when('/Opportunities', {
            templateUrl: 'views/gr_Opportunities.html',
            controller: 'OpportunitiesCtrl'
        }) .when('/Profile', {
            templateUrl: 'views/gr_Profile.html',
            controller: 'ProfileCtrl'
        }) .when('/ReachBeyond', {
            templateUrl: 'views/gr_ReachBeyond.html',
            controller: 'ReachBeyondCtrl'
        }) .when('/SeeTheWorld', {
            templateUrl: 'views/gr_SeeTheWorld.html',
            controller: 'SeeTheWorldCtrl'
        }) .when('/Shape', {
            templateUrl: 'views/gr_Shape.html',
            controller: 'ShapeCtrl'
        }) .when('/WhatWeDo', {
            templateUrl: 'views/gr_WhatWeDo.html',
            controller: 'WhatWeDoCtrl'
        })
        .when('/contact', {
            templateUrl: 'views/contact.html',
            controller: 'ContactCtrl'
        }).when('/Tips', {
            templateUrl: 'views/gr_Tips.html',
            controller: 'TipsCtrl'
        })
        //The interacting pages
        // sign in
        .when('/SignIn',{
            templateUrl:'sign-in/gr_SignIn.html',
            controller:'SignInCtrl'
        })
        //sign up
        .when('/SignUp',{
            templateUrl:'sign-up/gr_SignUp.html',
            controller:'SignUpCtrl'
        })
        //contactor to edit resume
        .when('/Resume',{
            templateUrl:'resume/gr_Resume.html',
            controller:'ResumeCtrl'
        })
        // Manager to release a new position
        .when('/JobRelease',{
            templateUrl:'job-release/gr_JobRelease.html',
            controller:'JobReleaseCtrl'
        })
        .otherwise({
            redirectTo: '/'
        });
  });